package com.xfatm.killer.entity;

/**
 * Created by wenjie on 2018/3/24.
 */

public enum MainTabEnum {
    SELECT("禁用APP"),ALL_APP("普通APP"),SYSTEM_APP("系统APP"),OTHER("其他操作");
    private String title;
    MainTabEnum(String title) {
        this.title = title;
    }
    public String getTitle() {
        return title;
    }
    public static MainTabEnum getEnumByName(String name){
        for(MainTabEnum mainTabEnum:values()){
            if(name.equals(mainTabEnum.toString())){
                return mainTabEnum;
            }
        }
        return null;
    }
}
